package com.lwz.eduservice.service;

import com.lwz.eduservice.entity.EduChapter;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lwz.eduservice.entity.chapter.ChapterVo;

import java.util.List;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author Lw中
 * @since 2020-11-11
 */
public interface EduChapterService extends IService<EduChapter> {

    /**
     * 通过课程ID获取课程的相关章节
     * @param courseId
     * @return
     */
    List<ChapterVo> getChapterVideoByCourseId(String courseId);

    /**
     * 通过章节id删除章节
     * @param chapterId
     * @return boolean
     */
    boolean deleteChapter(String chapterId);

    /**
     * 通过课程id删除章节
     * @param courseId
     */
    void removeChapterByCourseId(String courseId);
}
